package edu.mbb.cloud.nacos;

import org.springframework.core.env.MapPropertySource;

import java.util.Map;

public class NacosProperSource extends MapPropertySource {

    private String groupId;
    private String prefix;
    private String nameSpace;
    private String name;

    public NacosProperSource(String groupId,String prefix,String nameSpace,String name, Map<String, Object> source) {
        super(nameSpace, source);
        this.prefix=prefix;
        this.groupId=groupId;
        this.nameSpace=nameSpace;
        this.name=name;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }


    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getNameSpace() {
        return nameSpace;
    }

    public void setNameSpace(String nameSpace) {
        this.nameSpace = nameSpace;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
